package com.zc.springboot0506.controller.zc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
public class ZcController {
   @Autowired
   ZcService serice;


    @ResponseBody
    @RequestMapping("/zcquery")
    public List<Map> query(){
       return serice.query();
    }
}
